using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.Linq;
using System.Data.Linq.Mapping;

namespace LinqHelper.Entity
{
	[Table(Name = "News")]
	public class LqNewsEntity
	{
		Guid _Id;
		
		[Column(DbType = "uniqueidentifier NOT NULL", IsPrimaryKey = true)]
        public Guid Id
        {
            set
            {
                _Id = value;
            }
            get
            {
                return _Id;
            }
        }
        
		string _NewsId;
		
		[Column(DbType = "varchar(512) NOT NULL", IsPrimaryKey = false)]
        public string NewsId
        {
            set
            {
                _NewsId = value;
            }
            get
            {
                return _NewsId;
            }
        }
        
		string _Title;
		
		[Column(DbType = "nvarchar(512) NOT NULL", IsPrimaryKey = false)]
        public string Title
        {
            set
            {
                _Title = value;
            }
            get
            {
                return _Title;
            }
        }
        
		string _Absolute;
		
		[Column(DbType = "nvarchar(1024)", IsPrimaryKey = false)]
        public string Absolute
        {
            set
            {
                _Absolute = value;
            }
            get
            {
                return _Absolute;
            }
        }
        
		string _Contents;
		
		[Column(DbType = "nvarchar(4000)", IsPrimaryKey = false)]
        public string Contents
        {
            set
            {
                _Contents = value;
            }
            get
            {
                return _Contents;
            }
        }
        
		string _Photos;
		
		[Column(DbType = "varchar(512) NOT NULL", IsPrimaryKey = false)]
        public string Photos
        {
            set
            {
                _Photos = value;
            }
            get
            {
                return _Photos;
            }
        }
        
		DateTime _CreatedDate;
		
		[Column(DbType = "datetime NOT NULL", IsPrimaryKey = false)]
        public DateTime CreatedDate
        {
            set
            {
                _CreatedDate = value;
            }
            get
            {
                return _CreatedDate;
            }
        }
        
		string _CreatedBy;
		
		[Column(DbType = "varchar(50) NOT NULL", IsPrimaryKey = false)]
        public string CreatedBy
        {
            set
            {
                _CreatedBy = value;
            }
            get
            {
                return _CreatedBy;
            }
        }
        
	}
}
